#!/bin/bash
# ex9.sh

a=375
hello=$a

# no space on either side of = sign when initializing variables

echo hello

echo $hello
echo ${hello}

# quoting
echo "$hello"
echo "${hello}"

echo

hello="A B  C  D"
echo $hello
echo "$hello"

# different type of quoting
echo

echo '$hello'

hello=
echo "\$hello (null value)=$hello"

#whitespace embedded within a variable
echo; echo
numbers="one two three"
other_numbers="1 2 3"
echo "numbers = $numbers"
echo "other_numbers = $other_numbers"

# escaping the whitespace also works.
mixed_bag=2\ ---\ Whatever
echo "$mixed_bag"

echo ; echo
echo "uninitialized_variable = $uninitialized_variable"
uninitialized_variable=23
unset uninitialized_variable
echo "uninitialized_variable = $uninitialized_variable"
echo

exit 0
